const fs = require('fs');  
const path = require('path');  
const ttf2eot = require('ttf2eot');

module.exports = function(opt, ttfFont) {
  // svg创建成功， 再创建ttf
  let eot = ttf2eot(ttfFont);
  let eotFont = new Buffer(eot.buffer);
  fs.writeFileSync(opt.eotPath, new Buffer(eot.buffer));
};
